package com.ruoyi.project.WebMoudle.onlineCoupon.domain;

import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 优惠券对象 online_coupon
 * 
 * @author ruoyi
 * @date 2020-07-09
 */
public class OnlineCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 优惠券名称 */
    @Excel(name = "优惠券名称")
    private String couponName;

    /** 抵扣价格 */
    @Excel(name = "抵扣价格")
    private BigDecimal reduceMoney;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 到期时间 */
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 使用条件 */
    @Excel(name = "使用条件")
    private String useCondition;

    /** 状态(0-审核中,1-已发放,2-已到期) */
    @Excel(name = "状态(0-审核中,1-已发放,2-已到期)")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }
    public void setReduceMoney(BigDecimal reduceMoney)
    {
        this.reduceMoney = reduceMoney;
    }

    public BigDecimal getReduceMoney()
    {
        return reduceMoney;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setUseCondition(String useCondition) 
    {
        this.useCondition = useCondition;
    }

    public String getUseCondition() 
    {
        return useCondition;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("couponName", getCouponName())
            .append("reduceMoney", getReduceMoney())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("useCondition", getUseCondition())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
